home *** CD-ROM | disk | FTP | other *** search
/ Delphi Informant Complete 1995 - 2000 / Delphi Informant Complete 1995 to 2000.iso / Delphi Informant Magazine Complete Works SOURCE CODE 1995.rar / 1995 / SEP / CC9509 / main.pas < prev   
Pascal/Delphi Source File  |  1995-03-21  |  720b  |  45 lines

  1. unit Main;
  2.  
  3. { Program copyright (c) 1995 by Charles Calvert }
  4. { Project Name: }
  5.  
  6. { Working with strings, working with the Move command }
  7.  
  8. interface
  9.  
  10. uses
  11.   SysUtils, WinTypes, WinProcs,
  12.   Messages, Classes, Graphics,
  13.   Controls, Forms, Dialogs,
  14.   StdCtrls;
  15.  
  16. type
  17.   TForm1 = class(TForm)
  18.     Button1: TButton;
  19.     Edit1: TEdit;
  20.     procedure Button1Click(Sender: TObject);
  21.   private
  22.     { Private declarations }
  23.   public
  24.     { Public declarations }
  25.   end;
  26.  
  27. var
  28.   Form1: TForm1;
  29.  
  30. implementation
  31.  
  32. {$R *.DFM}
  33.  
  34. procedure TForm1.Button1Click(Sender: TObject);
  35. var
  36.  S1,S2: string;
  37. begin
  38.  S1 := 'Heebee Gee Bees';
  39.  Move(S1[12], S2[1], 4);
  40.  S2[0] := #4;
  41.  Edit1.Text := S2;;
  42. end;
  43.  
  44. end.
  45.